package com.rd.modules.room.model.ao;

import com.rd.modules.group.AddGroup;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 房间转账记录实体类
 */
@Data
public class RoomTransferAO {
    /**
     * 转账发生的房间ID
     */
    @NotBlank(message = "roomId不能为空", groups = {AddGroup.class})
    private String roomId;
    /**
     * 转账金额
     */
    @NotNull(message = "转账金额不能为空", groups = {AddGroup.class})
    @Max(value = 9999999, message = "转账金额不能大于9999999", groups = {AddGroup.class})
    private BigDecimal amount;
    /**
     * 收款用户ID
     */
    @NotBlank(message = "收款用户ID", groups = {AddGroup.class})
    private String recipientUserId;
}